#include<stdio.h>
#include<sys/types.h>
#include<unistd.h>
int main()
{
    printf("当前进程为：%d\n",getpid());
    const char* filename="test.txt";
    FILE* fp=fopen(filename,"wr");
    if(fp==NULL)
    {
        perror("文件打开失败");
        return 1;
    }

    fclose(fp);
    return 0;
    return 0;
}
